
//! 登录
export const login = {
    captcha: '/captcha', // 获取验证码
    userLogin: '/login', // 用户登录
    exit: '/login/exit', //退出登录
    getAuthMenuList: '/getAuthMenuList', //获取权限菜单
    getUserInfo: '/user/info', // 获取用户信息
}

//! 首页
//? 数据中心
export const adminHome = {
    getList: '/home/list',
}

//! 系统设置
//? 用户管理
export const adminUser = {
    getList: '/user/list',
    getById: '/user/detail',
    add: '/user/add',
    update: '/user/update',
    del: '/user/del',
    getRoleList: '/user/roleList',
    updateUserInfo: '/user/updateInfo', // 用户个人信息修改
    updatePassword: '/user/updatePassword', // 修改个人密码
}

//? 菜单管理 
export const adminMenu = {
    getList: '/menu/list',
    getById: (id) => `/menu/detail/${id}`,
    add: '/menu/add',
    update: '/menu/update',
    del: '/menu/del',
}

//? 角色管理 
export const adminRole = {
    getList: '/role/list',
    getById: '/role/detail',
    add: '/role/add',
    update: '/role/update',
    del: '/role/del',
    getMenuList: '/role/getMenuList',
    getAuthList: '/role/getAuthList',
    updateAuth: '/role/updateAuth',
}

//! 博客管理
//? 栏目管理
export const adminCloumn = {
    getList: '/column/list',
    getById: '/column/detail',
    add: '/column/add',
    update: '/column/update',
    del: '/column/del',
    onUpdateSort: '/column/onUpdateSort',
}

//? 文章管理
export const adminArticle = {
    getTabs: '/article/tab',
    getList: '/article/list',
    getById: '/article/detail',
    add: '/article/add',
    update: '/article/update',
    del: '/article/del',
    articleCategory: '/article/category',
    articleTag: '/article/tags',
    onUpdateSort: '/article/onUpdateSort',
    articleStateChange: '/article/stateChange',
}

//? 分类管理
export const adminClassify = {
    getList: '/classify/list',
    getById: '/classify/detail',
    add: '/classify/add',
    update: '/classify/update',
    del: '/classify/del',
    onUpdateSort: '/classify/onUpdateSort',
}

//? 标签管理
export const adminTags = {
    getList: '/tags/list',
    getById: '/tags/detail',
    add: '/tags/add',
    update: '/tags/update',
    del: '/tags/del',
    onUpdateSort: '/tags/onUpdateSort',
    articleCategory: '/article/category',
}


//! 友链管理
//? 友情链接
export const adminLink = {
    getList: '/link/list',
    getById: '/link/detail',
    add: '/link/add',
    update: '/link/update',
    del: '/link/del',
}

//! bbs管理
//? 文章评论
export const comment = {
    getCategory: '/comment/category',
    getArticle: '/comment/article',
    getList: '/comment/list',
    getById: '/comment/detail',
    add: '/comment/add',
    del: '/comment/del',
    reply: '/comment/reply',
}

//? 留言
export const talk = {
    getList: '/talk/list',
    getById: '/talk/detail',
    add: '/talk/add',
    update: '/talk/update',
    del: '/talk/del',
    reply: '/talk/reply',
}